/**
  * @brief project LoadBanlancer, 主程序入口
  * @file main.cpp
  * @author Liu Shuo
  * @date 2011.5.15
  */

#include "main.h"
#include "LoadBanlancer.h"

int main(int argc, char **argv)
{

    char defaultFile[] = "default.conf";

    if (argc > 2) {
        cout << "usage: LoadBanlancer [config filepath]" << endl;
        return 0;
    }
#ifdef DEBUG
    cout << "DEBUG" << endl;
#endif
    LoadBanlancer lb;
    if (argc == 1) {
        lb.readConf(defaultFile);
    }
    else {
        lb.readConf(argv[1]);
    }
    lb.run();
    return 0;
}
